package com.example.doo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class UsePhone {
    @Autowired
    private Phone phone;
    public void use(){
        phone.PrintPhone();
    }
}
